<?php foreach($this->klacht as $klachtStatus) : ?>
	<p><?php echo $klachtStatus[0]?></p>
	<table border="1" cellpadding="1" cellspacing="1" width="100%">
		<tr>
			<th>Id</th>
			<th>Datum</th>
			<th>Titel</th>
			<th>Klacht</th>
			<th>Status</th>
			<th>Prioriteit</th>
			<th>Behandelaar</th>
			<th>Configuratie</th>
			<th>Type</th>
			<th>Tijdsduur</th>
			<th>Verwachte oplos datum</th>
			<th>Oplossing</th>
			<th>Edit</th>

		</tr>

		<?php foreach($klachtStatus[1] as $klacht) : ?>
		<tr>
			<td><?php echo $this->escape($klacht->id);?></td>
			<td><?php echo $this->escape($klacht->klachtDatum);?></td>
			<td><?php echo $this->escape($klacht->klachtTitel);?></td>
			<td><?php echo $this->escape($klacht->klachtBody);?></td>
			<td><?php echo $this->escape($klacht->statusname);?></td>
			<td><?php echo $this->escape($klacht->klachtPrio);?></td>
			<td><?php echo $this->escape($klacht->klachtBehandelaar);?></td>
			<td><?php echo $this->escape($klacht->configname);?></td>
			<td><?php echo $this->escape($klacht->klachttype);?></td>
			<td><?php echo $this->escape($klacht->klachtTijdsduur);?></td>
			<td><?php echo $this->escape($klacht->klachtOplosDatum);?></td>
			<td><?php echo $this->escape($klacht->klachtOplossing);?></td>
			<td>
				<a href="<?php echo $this->url(array('controller'=>'klacht', 'action'=>'edit', 'callid'=>$klacht->id));?>">Edit</a>
			</td>
		</tr>
		<?php endforeach;?>
	<tr>

	</tr>
</table>
<?php endforeach; ?>

